package com.systemmanger.service;

import com.bean.WmsTCustomer;
import com.bean.WmsTUser;
import com.systemmanger.mapper.CustomerMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @AUTHOR(闫晨航)
 * @date2021-12-03 14:49
 */
@Service
public class CustomerService {
    @Autowired
    CustomerMapper customerMapper;

    public List<WmsTCustomer> getAllCustomers() {
        return customerMapper.getAllCustomers();
    }

    public List<WmsTCustomer> getCustomers(Map<String, Object> map) {
        return customerMapper.getCustomers(map);
    }

    public WmsTCustomer getOneCus(String custID) {
        return customerMapper.getOneCus(custID);
    }

    public void deleteBycustomer(WmsTCustomer wmsTCustomer) {
        customerMapper.deleteBycustomer(wmsTCustomer);
    }

    public void updateByCustomer(WmsTCustomer wmsTCustomer) {
        customerMapper.updateByCustomer(wmsTCustomer);
    }


}
